qrisp.QuantumCircuit.unitary#

QuantumCircuit.unitary(unitary_array, qubits)[source]#

Instruct a U3-gate from a given U3 matrix.

Parameters:
unitary_arraynumpy.ndarray

The U3 matrix to apply.

qubitsQubit

The Qubit to apply the gate on.